const goodsRouter = {
  path: '/goods',
  component: () => import('@/layout/common'),
  alwaysShow: true,
  redirect: 'noRedirect',
  meta: {
    title: '课程',
    keepAlive: false
  },
  children: [
    {
      path: '/packlists',
      name: 'PackLists',
      component: () => import('@/views/goods/packlists/index'),
      meta: { title: '金牌课程', keepAlive: false }
    },
    {
      path: '/pack-details',
      name: 'PackDetails',
      component: () => import('@/views/goods/packlists/detail'),
      meta: { title: '课程详情', keepAlive: false }
    },
    {
      path: '/stage-class',
      name: 'StageClass',
      component: () => import('@/views/goods/packlists/stage-class'),
      meta: { title: '阶段课详情', keepAlive: false }
    },
    {
      path: '/openlists',
      name: 'OpenLists',
      component: () => import('@/views/goods/openlists/index'),
      meta: { title: '名师专项课', keepAlive: false }
    },
    {
      path: '/open-details',
      name: 'OpenDetails',
      component: () => import('@/views/goods/openlists/detail'),
      meta: { title: '课程详情', keepAlive: false }
    },
    {
      path: '/freelists',
      name: 'FreeLists',
      component: () => import('@/views/goods/freelists/index'),
      meta: { title: '免费直播', keepAlive: false }
    },
    {
      path: '/free-details',
      name: 'FreeDetails',
      component: () => import('@/views/goods/freelists/detail'),
      meta: { title: '课程详情', keepAlive: false }
    },
    {
      path: '/confirm-order',
      name: 'ConfirmOrder',
      component: () => import('@/views/home/confirm-order/index'),
      meta: { title: '确认订单', keepAlive: false }
    },
    {
      path: '/select-address',
      name: 'SelectAddress',
      component: () => import('@/views/home/confirm-order/select-address'),
      meta: { title: '选择地址', keepAlive: false }
    }
  ]
}

export default goodsRouter
